\hypertarget{class____Ptclslist}{}\section{\+\_\+\+\_\+\+Ptclslist Class Reference}
\label{class____Ptclslist}\index{\+\_\+\+\_\+\+Ptclslist@{\+\_\+\+\_\+\+Ptclslist}}


一个同类粒子的粒子束，隶属于一个网格，也可以不是  




{\ttfamily \#include $<$particles.\+h$>$}



Collaboration diagram for \+\_\+\+\_\+\+Ptclslist\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=296pt]{dc/dbb/class____Ptclslist__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class____Ptclslist_a470bebacc11943b08eb0e617eaeb49e9}{}{\bfseries \+\_\+\+\_\+\+Ptclslist} (const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&\hyperlink{class____Ptclslist_ac6fc791bb5b3b456b7a909c175f43340}{mylength}, int sp)\label{class____Ptclslist_a470bebacc11943b08eb0e617eaeb49e9}

\item 
\hypertarget{class____Ptclslist_a057af4bb153114477217ab76dac3eabe}{}{\bfseries \+\_\+\+\_\+\+Ptclslist} (const \hyperlink{class____Ptclslist}{\+\_\+\+\_\+\+Ptclslist} \&other)\label{class____Ptclslist_a057af4bb153114477217ab76dac3eabe}

\item 
\hypertarget{class____Ptclslist_a682e2a2543c54e627c6fc3fd42843878}{}void \hyperlink{class____Ptclslist_a682e2a2543c54e627c6fc3fd42843878}{squeeze} ()\label{class____Ptclslist_a682e2a2543c54e627c6fc3fd42843878}

\begin{DoxyCompactList}\small\item\em 压缩空间 \end{DoxyCompactList}\item 
void \hyperlink{class____Ptclslist_a67f83b452b3c0970072c6b8454fe8835}{merge} (const double \&delta\+\_\+e, const double \&delta\+\_\+v)
\begin{DoxyCompactList}\small\item\em 利用此方法对当前的list进行压缩,如光子是需要压缩的.\+当光子的能量差异在delta\+\_\+e之内时会发生压缩.\+当然可以指定空间距离 \end{DoxyCompactList}\item 
\hypertarget{class____Ptclslist_a7969ef614256281a5103a4478e009e46}{}void \hyperlink{class____Ptclslist_a7969ef614256281a5103a4478e009e46}{push} (const \hyperlink{class____Ptcls}{\+\_\+\+\_\+\+Ptcls} \&other)\label{class____Ptclslist_a7969ef614256281a5103a4478e009e46}

\begin{DoxyCompactList}\small\item\em 将一个粒子压入当前list \end{DoxyCompactList}\item 
\hypertarget{class____Ptclslist_a51c29b9954cc6f3fe9c51fb919d38a6d}{}void \hyperlink{class____Ptclslist_a51c29b9954cc6f3fe9c51fb919d38a6d}{pop} (int offset)\label{class____Ptclslist_a51c29b9954cc6f3fe9c51fb919d38a6d}

\begin{DoxyCompactList}\small\item\em 删除offset处的粒子，一般不会主函数调用，不要使用，除非你懂 \end{DoxyCompactList}\item 
\hypertarget{class____Ptclslist_a89bd5130d9b94c556e1f23ccf1a98485}{}void \hyperlink{class____Ptclslist_a89bd5130d9b94c556e1f23ccf1a98485}{clear} ()\label{class____Ptclslist_a89bd5130d9b94c556e1f23ccf1a98485}

\begin{DoxyCompactList}\small\item\em 清除当前list \end{DoxyCompactList}\item 
\hypertarget{class____Ptclslist_a7feae0ba57fcfc32edaffa105cb1d09c}{}int \hyperlink{class____Ptclslist_a7feae0ba57fcfc32edaffa105cb1d09c}{size} ()\label{class____Ptclslist_a7feae0ba57fcfc32edaffa105cb1d09c}

\begin{DoxyCompactList}\small\item\em 返回当前list中粒子个数 \end{DoxyCompactList}\item 
\hypertarget{class____Ptclslist_a6b988d7f3025c884878bbf3dfbfe4de6}{}vector$<$ \hyperlink{class____Ptcls}{\+\_\+\+\_\+\+Ptcls} $>$\+::iterator {\bfseries begin} ()\label{class____Ptclslist_a6b988d7f3025c884878bbf3dfbfe4de6}

\item 
\hypertarget{class____Ptclslist_a4889ff9ad9c974507c21cdd0415568ec}{}vector$<$ \hyperlink{class____Ptcls}{\+\_\+\+\_\+\+Ptcls} $>$\+::iterator {\bfseries end} ()\label{class____Ptclslist_a4889ff9ad9c974507c21cdd0415568ec}

\item 
\hypertarget{class____Ptclslist_ab01ad08b2b0eba942ccb4e7af6b05ea6}{}\hyperlink{class____Ptcls}{\+\_\+\+\_\+\+Ptcls} \& \hyperlink{class____Ptclslist_ab01ad08b2b0eba942ccb4e7af6b05ea6}{get\+\_\+ptcl} (int offset)\label{class____Ptclslist_ab01ad08b2b0eba942ccb4e7af6b05ea6}

\begin{DoxyCompactList}\small\item\em 返回offset处粒子信息 \end{DoxyCompactList}\item 
\hypertarget{class____Ptclslist_abd6d139f042a71a595aa7f4aa2a21714}{}double \hyperlink{class____Ptclslist_abd6d139f042a71a595aa7f4aa2a21714}{get\+\_\+sp\+\_\+ek} (const int \&sp)\label{class____Ptclslist_abd6d139f042a71a595aa7f4aa2a21714}

\begin{DoxyCompactList}\small\item\em 返回该list的能量 \end{DoxyCompactList}\item 
\hypertarget{class____Ptclslist_abf8f9068e29bee8f2cdef145ba7e32ff}{}void \hyperlink{class____Ptclslist_abf8f9068e29bee8f2cdef145ba7e32ff}{advance} (double delta\+\_\+t, vector$<$ \hyperlink{class____Ptcls}{\+\_\+\+\_\+\+Ptcls} $>$ \&lists, const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&xymin, const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&xymax, const int \&myrank)\label{class____Ptclslist_abf8f9068e29bee8f2cdef145ba7e32ff}

\begin{DoxyCompactList}\small\item\em 推动该list中所有粒子一步 \end{DoxyCompactList}\item 
\hypertarget{class____Ptclslist_aad813503cf966e45b694006e71a022e1}{}void \hyperlink{class____Ptclslist_aad813503cf966e45b694006e71a022e1}{showme} ()\label{class____Ptclslist_aad813503cf966e45b694006e71a022e1}

\begin{DoxyCompactList}\small\item\em 输出每个粒子 \end{DoxyCompactList}\item 
\hypertarget{class____Ptclslist_a86188e07e2f77f26cb58aaab4fa92743}{}\hyperlink{class____Ptclslist}{\+\_\+\+\_\+\+Ptclslist} \hyperlink{class____Ptclslist_a86188e07e2f77f26cb58aaab4fa92743}{operator=} (const \hyperlink{class____Ptclslist}{\+\_\+\+\_\+\+Ptclslist} \&other)\label{class____Ptclslist_a86188e07e2f77f26cb58aaab4fa92743}

\begin{DoxyCompactList}\small\item\em 通过重载可以直接复制了 \end{DoxyCompactList}\item 
\hypertarget{class____Ptclslist_a51c4123e00a360321de6765592ee474e}{}double \hyperlink{class____Ptclslist_a51c4123e00a360321de6765592ee474e}{weightfunc} (const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&mycoords, const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&other, const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&cell\+\_\+length)\label{class____Ptclslist_a51c4123e00a360321de6765592ee474e}

\begin{DoxyCompactList}\small\item\em 与cellinfo中相同 \end{DoxyCompactList}\item 
\hypertarget{class____Ptclslist_a5b13daa4e19e718b839e4aeaf4429d77}{}double {\bfseries weightfunc} (const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&mycoords, const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&other)\label{class____Ptclslist_a5b13daa4e19e718b839e4aeaf4429d77}

\item 
\hypertarget{class____Ptclslist_a9d8b0124410e9eaf2a30e64082a219e3}{}double {\bfseries weight\+\_\+to\+\_\+coords\+\_\+rho} (const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&coords, const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&cell\+\_\+length)\label{class____Ptclslist_a9d8b0124410e9eaf2a30e64082a219e3}

\item 
\hypertarget{class____Ptclslist_af4b08b65e5b4803d5fef72e5503f1a48}{}double {\bfseries weight\+\_\+to\+\_\+coords\+\_\+j} (const int \&sp, const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&coord, const \hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \&cell\+\_\+length)\label{class____Ptclslist_af4b08b65e5b4803d5fef72e5503f1a48}

\end{DoxyCompactItemize}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class____Ptclslist_abda46652d821fa0b406851572ab9a7a9}{}vector$<$ \hyperlink{class____Ptcls}{\+\_\+\+\_\+\+Ptcls} $>$ \hyperlink{class____Ptclslist_abda46652d821fa0b406851572ab9a7a9}{member}\label{class____Ptclslist_abda46652d821fa0b406851572ab9a7a9}

\begin{DoxyCompactList}\small\item\em 粒子类成员 \end{DoxyCompactList}\item 
\hypertarget{class____Ptclslist_a98e6733c424414f7cc596e64486e43b2}{}vector$<$ \hyperlink{class____Ptcls}{\+\_\+\+\_\+\+Ptcls} $>$\+::iterator \hyperlink{class____Ptclslist_a98e6733c424414f7cc596e64486e43b2}{iter}\label{class____Ptclslist_a98e6733c424414f7cc596e64486e43b2}

\begin{DoxyCompactList}\small\item\em 粒子类的一个迭代器，一般不要调用，除非你懂 \end{DoxyCompactList}\item 
\hypertarget{class____Ptclslist_a639c350be512a5b80043429e5e873a75}{}int \hyperlink{class____Ptclslist_a639c350be512a5b80043429e5e873a75}{species}\label{class____Ptclslist_a639c350be512a5b80043429e5e873a75}

\begin{DoxyCompactList}\small\item\em 当前粒子种类 \end{DoxyCompactList}\item 
\hypertarget{class____Ptclslist_ac6fc791bb5b3b456b7a909c175f43340}{}\hyperlink{class____Vect2}{\+\_\+\+\_\+\+Vect2}$<$ double $>$ \hyperlink{class____Ptclslist_ac6fc791bb5b3b456b7a909c175f43340}{mylength}\label{class____Ptclslist_ac6fc791bb5b3b456b7a909c175f43340}

\begin{DoxyCompactList}\small\item\em 网格长宽 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
一个同类粒子的粒子束，隶属于一个网格，也可以不是 

\subsection{Member Function Documentation}
\hypertarget{class____Ptclslist_a67f83b452b3c0970072c6b8454fe8835}{}\index{\+\_\+\+\_\+\+Ptclslist@{\+\_\+\+\_\+\+Ptclslist}!merge@{merge}}
\index{merge@{merge}!\+\_\+\+\_\+\+Ptclslist@{\+\_\+\+\_\+\+Ptclslist}}
\subsubsection[{merge}]{\setlength{\rightskip}{0pt plus 5cm}void \+\_\+\+\_\+\+Ptclslist\+::merge (
\begin{DoxyParamCaption}
\item[{const double \&}]{delta\+\_\+e, }
\item[{const double \&}]{delta\+\_\+v}
\end{DoxyParamCaption}
)}\label{class____Ptclslist_a67f83b452b3c0970072c6b8454fe8835}


利用此方法对当前的list进行压缩,如光子是需要压缩的.\+当光子的能量差异在delta\+\_\+e之内时会发生压缩.\+当然可以指定空间距离 

删除被merge的粒子

进行压缩空间 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
particles.\+h\end{DoxyCompactItemize}
